<!-- 继续教育内容模板 -->
<div class="panel panel-info">
    <div class="panel-heading">
        <h3 class="panel-title"><i class="fa fa-graduation-cap"></i> 继续教育详情</h3>
    </div>
    <div class="panel-body">
        <p><strong>工作类型：</strong>继续教育</p>

        <!-- 继续教育记录列表 -->
        <div class="form-group">
            <label class="control-label col-xs-12 col-sm-2">继续教育记录 <span class="text-danger">*</span>：</label>
            <div class="col-xs-12 col-sm-10">
                <dl class="fieldlist" data-name="education_records" data-template="tpl_education_records" style="min-width: 1000px;">
                    <dd class="form-inline header-box-title">
                        <ins style="width:280px">教育机构</ins>
                        <ins style="width:150px">学习年份</ins>
                        <ins style="width:150px">新增学时</ins>
                        <ins style="width:100px" class="operation-header">操作</ins>
                    </dd>
                    <dd class="form-inline"><a href="javascript:;" id="btn_add_row_education_records" class="btn btn-sm btn-success"><i class="fa fa-plus"></i> 添加记录</a></dd>
                </dl>
            </div>
        </div>

    </div>
</div>

<!-- 继续教育记录列表模板 -->
<script type="text/html" id="tpl_education_records">
    <dd class="form-inline" data-fieldlist-row="1">
        <input type="hidden" name="education_records[__INDEX__][id]" value="">
        <ins style="width:260px">
            <input type="text" name="education_records[__INDEX__][platform_id]" class="form-control selectpage" style="width: 200px;"
                data-rule="required"
                data-source="pt/edu_platform/index" 
                data-field="platform_name" 
                data-search-field="platform_name"
                data-pagination="true"
                data-format-item="{platform_name}"
                data-params="fields=id,platform_name"
                data-key-field="id"
                data-value-field="platform_name"
                value="">
        </ins>
        <ins style="width:140px">
            <input type="number" name="education_records[__INDEX__][year]" class="form-control" 
                placeholder="请输入年份" 
                min="2020" 
                max="2999" 
                value="{:date('Y')}" 
                data-rule="required">
        </ins>
        <ins style="width:140px">
            <input type="number" name="education_records[__INDEX__][total_class_hour]" class="form-control" 
                placeholder="请输入新增学时" 
                min="0" 
                value="0" 
                data-rule="required">
        </ins>
        <ins style="width:100px" class="operation">
            <a href="javascript:;" class="btn btn-danger btn-sm btn-remove"><i class="fa fa-trash"></i> 删除</a>
        </ins>
    </dd>
</script>

{if isset($education_records) && !empty($education_records)}
<input type="hidden" id="education-records-data" value='{$education_records|json_encode}'>
{/if}
<input type="hidden" name="changed_records_json" value="">
<input type="hidden" name="new_records_json" value="">
<input type="hidden" name="deleted_ids_json" value="">

